package com.cssy.xxkj.logic.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.byd.acegiext.domain.User;
import com.cssy.xxkj.logic.dao.LogicWarehouseOtherinItemDAO;
import com.cssy.xxkj.logic.entity.LogicWarehouseOtherinItemDO;
import com.cssy.xxkj.logic.service.ILogicWareHouseOtherInItemService;
import com.plat.exception.SyBaseException;
import com.plat.helper.SearchConditions;
import com.plat.helper.SearchResult;
import com.plat.util.IDCodeTypeUtil;

@Service("logicWareHouseOtherInItemService")
public class LogicWareHouseOtherInItemServiceImpl implements ILogicWareHouseOtherInItemService{

	@Resource(name = "logicWarehouseOtherinItemDAO")
	private LogicWarehouseOtherinItemDAO logicWarehouseOtherinItemDAO;
	@Override
	public SearchResult findListByExample(SearchConditions scs)
			throws SyBaseException {
		SearchResult sr= new SearchResult();
		scs.setRemovedProperty(null);
		List<LogicWarehouseOtherinItemDO> list= logicWarehouseOtherinItemDAO.find(scs);
		sr.setRecordCount(logicWarehouseOtherinItemDAO.count(scs));
		sr.setResults(list);
		return sr;
	}

	@Override
	public Integer delete(String id, User user) throws SyBaseException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer update(LogicWarehouseOtherinItemDO t, User user)
			throws SyBaseException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public LogicWarehouseOtherinItemDO save(LogicWarehouseOtherinItemDO t, User user)
			throws SyBaseException {
		String id = IDCodeTypeUtil.getId();
		t.setId(id);
		logicWarehouseOtherinItemDAO.insertLogicWarehouseOtherinItemDO(t);
		return t;
	}

	@Override
	public LogicWarehouseOtherinItemDO findListById(String id) throws SyBaseException {
		return null;
	}

	@Override
	public List<LogicWarehouseOtherinItemDO> findByPid(String pid)
			throws SyBaseException {
		return logicWarehouseOtherinItemDAO.findByPid(pid);
	}

	@Override
	public void deleteByPid(String pid) throws SyBaseException {
		logicWarehouseOtherinItemDAO.deleteByPid(pid);
	}

	@Override
	public Integer deleteBizRemoved(String id) throws SyBaseException {
		// TODO Auto-generated method stub
		return null;
	}

}
